package com.xinghe.sharedevice.repository;

import com.xinghe.sharedevice.domain.StationLocation;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author 星河一叶Ck
 * @date 2025/5/28
 */

@Repository
// 继承的第一个是实体类 第二个是ID的类型
public interface StationLocationRepository extends MongoRepository<StationLocation, String> {
    StationLocation getByStationId(Long stationId);

    StationLocation deleteByStationId (Long stationId);

}
